<!--<?php if ($this->topics_list) { ?>-->
<!--<?php foreach ($this->topics_list AS $key => $val) { ?>-->
<!--<li>-->
<!--<a class="img" ><img src="<?php echo get_topic_pic_url('mid', $val['topic_pic']); ?>" alt="" /></a>-->
<!--<a href="javascript:;" class="btn btn-success follow btn-mini pull-right<?php if ($val['has_focus']) { ?> active<?php } ?>" onclick="AWS.User.follow($(this), 'topic', <?php echo $val['topic_id']; ?>);"><span><?php if ($val['has_focus']) { ?><?php _e('取消关注'); ?><?php } else { ?><?php _e('关注'); ?><?php } ?></span>-->
<!--<em>|</em> <b><?php echo $val['focus_count']; ?></b>-->
<!--</a>-->
<!--<p class="clearfix">-->
<!--<span class="topic-tag"><a class="text"><?php echo $val['topic_title']; ?></a></span>-->
<!--</p>-->
<!--<p>-->
<!--<span class="text-color-999"><?php _e('%s 个讨论', $val['discuss_count']); ?></span>-->
<!--</p>-->
<!--</li>-->
<!--<?php } ?>-->
<!--<?php } ?>-->

<?php if ($this->topics_list) { ?>
<dl>
    <?php foreach ($this->topics_list AS $key => $val) { ?>
    <?php if ($val['title']) { ?>
    <dd>
        <h4 class = "title"><?php echo $val['title']; ?>
            <a href = "javascript:;" class = "open_welcome_topics_list pull-right">展开</a></h4>
        <div id = "topics_parent_<?php echo $val['type_id']; ?>" class = "hide">
            <?php foreach($val['child'] as $_key => $_val) { ?>
            <span class = "btn btn-mini btn-success topics_node" style = "margin: 5px;" data-id = "<?php echo $_val['id']; ?>" data-parent-id = "<?php echo $val['type_id']; ?>"><?php echo $_val['title']; ?></span>
            <?php } ?>
        </div>
    </dd>
    <?php } ?>
    <?php } ?>
</dl>
<?php } ?>

